package org.ngbx.demo.flink.dd;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceDataEvent {
    private String id;

    /**
     * 电源状态
     */
    private Integer pwrStat;

    /**
     * 工作状态
     */
    private Integer workingStat;

    /**
     * 计件
     */
    private Integer accJobCount;

    /**
     * 发生时间
     */
    private Long occurrenceTime;

    @Override
    public String toString() {
        return this.getClass().getSimpleName() + "{" +
                "id='" + id + '\'' +
                ", pwrStat='" + pwrStat +
                ", workingStat='" + workingStat +
                ", accJobCount='" + accJobCount +
                ", occurrenceTime='" + occurrenceTime +
                '\'' +
                '}';
    }
}
